package com.project.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@Validated
@ApiModel(value = "Management",description = "物业信息")
public class Management implements Serializable,Cloneable {
    /**
     * 物业ID
     */
    @ApiModelProperty(value = "物业ID",example = "1")
    private Integer id;
    /**
     * 物业位置
     */
    @Pattern(regexp = "[\\u4e00-\\u9fa5A-Za-z0-9]",message = "地址中不能有特殊符号")
    @ApiModelProperty(value = "物业地址",example = "北京市")
    private String location;
    /**
     * 物业名称
     */
    @Pattern(regexp = "[\\u4e00-\\u9fa5A-Za-z0-9]",message = "物业名称中不能有特殊符号")
    @ApiModelProperty(value = "物业名称",example = "碧桂园")
    private String name;
    /**
     * 定位ID
     */
    @ApiModelProperty(value = "位置ID",example = "1")
    private Integer orientation_id;
}
